﻿<%@ Page Title="ScrumPeak.com" Language="C#" MasterPageFile="~/Views/Shared/Login.Master" AutoEventWireup="true" Inherits="MvcContrib.FluentHtml.ModelViewPage<CreateAccountModel>" %>
<%@ Import Namespace="Peak.Web.Controllers.HtmlExtentions"%>
<%@ Import Namespace="Peak.Resources"%>
<%@ Import Namespace="MvcContrib.FluentHtml" %>
<%@ Import Namespace="Peak.Web.Controllers" %>
<%@ Import Namespace="Peak.Core" %>
<%@ Import Namespace="Peak.Web.Controllers.Models" %>
<asp:Content ContentPlaceHolderID="center" runat="server">
  <div class="page-title"><%= PageTitles.CreateAccount %></div>
  <div class="page-content">
    <form method="post">
      <table>        
        <tr>
          <td valign="top"><%= Labels.UserName %></td>
          <td>
            <%= this.TextBox(f=>f.UserName) %><br />
            <%= this.ValidationMessage(f=>f.UserName) %>
          </td>
        </tr>
        <%--<tr>
          <td><%= Labels.FirstName %></td>
          <td><%= this.TextBox("FirstName") %></td>
        </tr>
        <tr>
          <td><%= Labels.LastName %></td>
          <td><%= this.TextBox("LastName")%></td>
        </tr>--%>
        <tr>
          <td valign="top"><%= Labels.Email %></td>
          <td>
            <%= this.TextBox(f=>f.Email)%><br />
            <%= this.ValidationMessage(f=>f.Email) %>
          </td>
        </tr>  
        <tr>
          <td valign="top"><%= Labels.Password %></td>
          <td>
            <%= this.Password(f=>f.Password)%><br />
            <%= this.ValidationMessage(f=>f.Password) %>
          </td>
        </tr>
        <tr>
          <td valign="top"><%= Labels.PasswordRepeat %></td>
          <td>
            <%= this.Password(f=>f.ReEnteredPassword)%><br />
            <%= this.ValidationMessage(f=>f.ReEnteredPassword) %>
          </td>
        </tr>  
        <%--<tr>
          <td><%= Labels.Email %></td>
          <td><%= this.TextBox("Email")%></td>
        </tr> --%>       
        <tr>
          <td></td>
          <td>
            <%= Html.OkButton()%>
            <%= Html.PeakButton<AccountController>(f=>f.Login(),Buttons.Cancel) %>
          </td>
        </tr>
      </table>
    </form>    
  </div>
</asp:Content>
